package com.tjtt.tdm.flow.dao;

import java.util.List;
import java.util.Map;

import org.hibernate.LockMode;
import org.hibernate.Query;
import org.springframework.context.ApplicationContext;

import com.tjtt.tdm.base.PageResult;
import com.tjtt.tdm.exception.DaoException;
import com.tjtt.tdm.flow.bean.Flowtype;

public interface IFlowtypeDao  {
	public String save(Flowtype transientInstance);
	
	public String saveobject(Object transientInstance);

	public void delete(Flowtype persistentInstance) ;

	public Flowtype findById(java.lang.Long id);

	public List findByExample(Flowtype instance) ;

	public List findByProperty(String propertyName, Object value);

	public List findByName(Object name);
	
	public List findAllByWhere(String where);

	public List findAll();
	
	public List findAllBySql(String sql);
	
	public void executeBySql(String sql);

	public Flowtype merge(Flowtype detachedInstance);

	public void attachDirty(Flowtype instance) ;

	public void attachClean(Flowtype instance) ;
	
	public Long getMaxId();
	
	public void delFlowtypeById(String id);
	
	public void update(Flowtype instance);
	
	public PageResult GetFlowtypeList(Map<String, String> filterMap) throws DaoException;

	
}
